package com.restaurant.application.login;

import com.nebutown.description.UnitDescription;

public class LoginDesc extends UnitDescription {
    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(Login.class, null);

        desc.nextBean("LoginData")
                .add("userName", String.class)
                .add("password", String.class)
        ;

        desc.nextBean("LoginPageData")
                .add("loginPath", String.class)
                .add("errorMessage", String.class)
        ;


        desc.addUiFunction("login", "LoginData")
        ;

        desc.addUiFactory("login", "LoginPageData", SUBS.NONE)
        ;

        desc.run("./");
    }
}
